const modelTags = {
    plane: '飞机',
    'baseball-diamond': '棒球场',
    bridge: '桥梁',
    'ground-track-field': '地面田径场',
    'small-vehicle': '小型车辆',
    'large-vehicle': '大型车辆',
    ship: '船',
    'tennis-court': '网球场',
    'basketball-court': '篮球场',
    'storage-tank': '油罐',
    'soccer-ball-field': '足球场',
    roundabout: '环形交叉路口',
    harbor: '港口',
    'swimming-pool': '游泳池',
    helicopter: '直升机',
    ship_left_no_changes: '船左无改变',
    ship_left_disapear: '船左消失',
    ship_right_no_changes: '船右无改变',
    ship_right_appear: '船右出现',
}

function useModelHelper() {
    function translateModelTag(tag_label: string) {
        if (Object.hasOwn(modelTags, tag_label)) {
            // @ts-ignore
            return modelTags[tag_label]
        }

        return '未知'
    }

    return {
        translateModelTag,
    }
}


export default useModelHelper